package com.jch.dm.chapter_21_proxy;

/**
 * @author: Administrator
 * @create: 2020/04/12 11:38
 **/
public class Main {

    public static void main(String[] args) {
        Printable p = new PrinterProxy("二蛋");
        System.out.println("现在的名字是" + p.getPrinterName() + "。");
        p.setPrinterName("二狗");
        System.out.println("现在的名字是"+p.getPrinterName()+"。");
        p.print("Hello,mother ");
    }
}
